package com.zoe.app.controller;

import cn.hutool.core.date.DateUtil;
import com.zoe.app.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Zoe.Zhang
 * @date 2021/09/25
 * @description
 */
@RestController
public class UserController {
    @GetMapping("/")
    public User user() {
        return User.Builder()
            .setId(1L)
            .setName("小明")
            .setBirthday(DateUtil.date())
            .setAddress("芜湖")
            .build();
    }
}
